Telegram Group & Telegram Channel
🐥 Задача по Python #16

Описание

Напишите функцию, которая принимает строку скобок и определяет, допустим ли порядок скобок. Функция должна возвращать true, если строка допустима, и false, если она недействительна.

Примеры

"()" => True
")(()))" => False
"(" => False
"(())((()())())" => True

Ограничения

0 <= input.length <= 100

Наряду с открывающей ( и закрывающей ) скобкой ввод может содержать любые допустимые символы ASCII. Кроме того, входная строка может быть пустой и/или вообще не содержать скобок. Не рассматривайте другие формы квадратных скобок как круглые (например, [], {}, <>).

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи



tg-me.com/pythonturboru/419
Create:
Last Update:

🐥 Задача по Python #16

Описание

Напишите функцию, которая принимает строку скобок и определяет, допустим ли порядок скобок. Функция должна возвращать true, если строка допустима, и false, если она недействительна.

Примеры

"()" => True
")(()))" => False
"(" => False
"(())((()())())" => True

Ограничения

0 <= input.length <= 100

Наряду с открывающей ( и закрывающей ) скобкой ввод может содержать любые допустимые символы ASCII. Кроме того, входная строка может быть пустой и/или вообще не содержать скобок. Не рассматривайте другие формы квадратных скобок как круглые (например, [], {}, <>).

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи

BY Python Turbo. Уютное сообщество Python разработчиков.




Share with your friend now:
tg-me.com/pythonturboru/419

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

A Telegram spokesman declined to comment on the bond issue or the amount of the debt the company has due. The spokesman said Telegram’s equipment and bandwidth costs are growing because it has consistently posted more than 40% year-to-year growth in users.

China’s stock markets are some of the largest in the world, with total market capitalization reaching RMB 79 trillion (US$12.2 trillion) in 2020. China’s stock markets are seen as a crucial tool for driving economic growth, in particular for financing the country’s rapidly growing high-tech sectors.Although traditionally closed off to overseas investors, China’s financial markets have gradually been loosening restrictions over the past couple of decades. At the same time, reforms have sought to make it easier for Chinese companies to list on onshore stock exchanges, and new programs have been launched in attempts to lure some of China’s most coveted overseas-listed companies back to the country.

Python Turbo Уютное сообщество Python разработчиков from it


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA